<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateVideoLink extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('video_link', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title', 30)->default('')->comment('短剧标题');
            $table->string('introduce', 100)->default('')->comment('短剧简介');
            $table->string('video_cover', 200)->default('')->comment('封面链接');
            $table->string('video_url', 200)->default('')->comment('视频链接');
            $table->string('xcv_url', 200)->default('')->comment('小程序链接');
            $table->integer('sort')->default(0)->comment('排序');
            $table->tinyInteger('status')->default(0)->comment('开关 0=关 1=开');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('video_link');
    }
}
